package com.uzai.console.config;


import com.aliyun.teaopenapi.models.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DingDingConfig {

    @Bean
    public static  com.aliyun.dingtalkservice_group_1_0.Client createGroupClient() throws Exception{
        Config config=new Config();
        config.protocol = "https";
        config.regionId = "central";
        return new com.aliyun.dingtalkservice_group_1_0.Client(config);
    }

    @Bean
    public static com.aliyun.dingtalkoauth2_1_0.Client createTokenClient() throws Exception {
        com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config();
        config.protocol = "https";
        config.regionId = "central";
        return new com.aliyun.dingtalkoauth2_1_0.Client(config);

    }

    @Bean
    public static com.aliyun.dingtalkim_1_0.Client createMerberMangerClient() throws Exception {
        Config config = new Config();
        config.protocol = "https";
        config.regionId = "central";
        return new com.aliyun.dingtalkim_1_0.Client(config);
    }
}
